package com.guanzi.big_data_mq_process.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * (UserOrder)表实体类
 *
 * @author xuguang
 * @since 2025-06-14 09:34:25
 */
@Data
@TableName("user_order")
public class UserOrder implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer orderId;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime orderDate;


    private BigDecimal totalAmount;


    private Integer userId;


    private String userName;


    private String userEmail;


}
